﻿@using WebEntities;
@using Tools.com.Pager;
@model PagedList<WI_Jobs>

@{
    ViewBag.Title = "招聘信息_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg8";
}

<div class="listMain">
    <div class="main_l">
        <div class="contentBox">
            <div class="searchArea">
            @using (Html.BeginForm("searchjobs", "list"))
            {
                <div class="tit">
                    查找招聘信息</div>
                <input type="text" name="search" id="search" value="@ViewBag.SearchKey" maxlength="20" placeholder = "请输入搜索内容" class="txtInp" />
                <select name="stype">
                    <option value="pos">按工作职位检索</option>
                    <option value="com">按企业单位检索</option>
                </select>
                <input type="submit" value="" class="btnSearch" />
            }
            </div>
        </div>
         @Html.Action("Contact", "PublicPartialView")
    </div>
    <div class="main_r">
        <div class="addressRemark">
            您当前位置：<a href="/">首页</a> > <a href="#">查找招聘信息</a>
        </div>
        <div class="contentBox">
            <div class="tab">
                <ul>
                    <li class="current">查找结果</li>
                </ul>
                <span class="subitem">一共找到<font class="red">@ViewBag.SearchCount</font>条招聘信息</span>
            </div>
            <div class="tab-content">
                <table border="1" cellpadding="0" cellspacing="0" width="650px" class="jobTable">
                    <tr>
                        <th width="200px">
                            职位名称
                        </th>
                        <th width="185px">
                            公司名称
                        </th>
                        <th width="100px">
                            工作地点
                        </th>
                        <th width="60px">
                            招聘人数
                        </th>
                        <th width="70px">
                            发布日期
                        </th>
                        <th width="35px">
                            &nbsp;
                        </th>
                    </tr>
                    @foreach (var job in Model)
                    {
                        <tr>
                            <td><a href="/detail/job/@job.JobID" class="linkColor">@job.JobName</a></td>
                            <td>@job.CompanyName</td>
                            <td>@job.JobAddress</td>
                            <td>@job.JobPepleNum</td>
                            <td>@((job.PubTime ?? job.CreateTime).ToString("yyyy-MM-dd"))</td>
                            <td><a href="/detail/job/@job.JobID" class="linkColor" target="_blank">进入</a></td>
                        </tr>
                    }
                </table>
                <div class="cls"></div>
                @Html.Pager(Model, new PagerOptions
                {
                    PageIndexParameterName = "page",
                    CssClass = "mvc-pager",
                    CurrentPagerItemWrapperFormatString = "<a  href='javascript:void(0)' class=\"mvc-paged\">{0}</a>",
                    HorizontalAlign = "center"
                })
            </div>
        </div>
    </div>
</div>